package com.treeroot.treenet.protocol.abs.tcp.route;

import com.treeroot.treenet.protocol.abs.tcp.session.TcpSession;
import com.treeroot.treenet.protocol.abs.tcp.decode.DecodedMessage;

import java.io.IOException;

/**
 * Description: 协议处理程序
 * Create By TreeRoot
 * Create Time: 2025/06/02 10:20
 * Class Name: ProtocolHandler
 *
 * @author TreeRoot
 */
public interface RouteHandler {
    /**
     * 处理指定类型的消息
     */
    void handle(DecodedMessage message, TcpSession session) throws IOException;
}